package ca.scotthyndman.as2haxe.dom;

import ca.scotthyndman.as2haxe.dom.visitor.IVisitor;

/**
 * Represents a <code>true</code> or <code>false</code> value.
 */
public class ASBooleanLiteral extends ASExpression {

	boolean booleanValue;

	/**
	 * Constructs a new instance of ASBooleanLiteral
	 * 
	 * @param ast
	 *            The abstract syntax tree that owns this element
	 */
	public ASBooleanLiteral(AST ast) {
		super(ast);
	}

	public boolean getBooleanValue() {
		return booleanValue;
	}

	public void setBooleanValue(boolean booleanValue) {
		this.booleanValue = booleanValue;
	}

	@Override
	public String toString() {
		return "e:" + getBooleanValue();
	}
	
	@Override
	public void accept(IVisitor as2Visitor, boolean recursive) {
		as2Visitor.visit(this);
	}
}
